Repository navigation
feat: detect environment declarations with --with-env - #21
Merged
Merged
Conversation
jeroenrinzema
approved these changes
Nov 10, 2026
…#22) * feat: detect platform deployment env declarations and code references Extend brainpod detect --with-env with deployment manifests of other hosting platforms (app.json/scalingo.json, heroku.yml, render.yaml, fly.toml, DigitalOcean app specs, vercel.json/toml, netlify.toml, App Engine app.yaml, AWS Copilot manifests), optional required/secret/generated/hasDefault/scope fields, Dockerfile ARG declarations, and a catalog-driven literal search for platform-injected names and framework env prefixes in source files. * feat: gate code-reference source search behind --with-source * fix: scan Copilot override sidecars and bound code-reference storage - Traverse environments.<name>.sidecars in Copilot manifests. - Aggregate code-reference hits per directory as a unique-line count plus the smallest MAX_OCCURRENCES locations, and merge without per-hit clones.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds opt-in
brainpod detect [path] --with-envwith JSON and text output for dotenv, Compose, DockerfileENV, Kubernetes declarations, and GitHub Actionsenv.Reports variable names and source/project provenance only. Values are never exposed or evaluated; file/secret references remain unresolved. Default output and read counts are unchanged.
Validated with 215 Rust tests, 12 Python tests, fmt, Clippy, release builds and benchmarks. All 321 corpus assertions pass across 51 pinned repos with five deterministic runs; default reports are byte-identical to the base. All ten starters pass in both modes. Native CI was not rerun locally.
Research, supported syntax, limits, and offline reproduction:
tests/detect-env.md.